<@master template="master/master-loan"  title="同步数椐">

<@css href="/easyui/themes/default/easyui.css"/>
<@css href="/easyui/themes/icon.css"/>
<@js src="/easyui/jquery.easyui.min.js"/><@jsRender/>



<div class="detailsBox ">
	<!--
	<a href="/oaoro2odatasub/startbuttonoa?type=1" class="btn_auto_30 btn_blue action-ajax-btn">同步数椐</a>
	-->
	<a  class="action-ajax-btn edit btn_blue" data-url="<@url value='/oaoro2odatasub/edit?loanapplyNo=11'/>" >新增</a>
</div>

<select id="state" class="easyui-combobox" name="state" style="width:200px;">		
		<option value="UT">Utah</option>
		<option value="VT">Vermont</option>
		<option value="VA">Virginia</option>
		<option value="WA">Washington</option>
		<option value="WV">West Virginia</option>
		<option value="WI">Wisconsin</option>
		<option value="WY">Wyoming</option>
	</select>
	
	<input id="cc" class="easyui-combogrid" style="width:250px" data-options="
			panelWidth: 500,
			idField: 'word',
			textField: 'productname',
			url: '/oaoro2odatasub/jsonword',
			method: 'get',
			columns: [[
				{field:'word',title:'Item ID',width:80}
				
			]],
			fitColumns: true
		">
	<input type="test" class="easyui-combogrid" name="search_exhnames"  id="search_exhnames" style="width:250px;" ></input> 
</@master>
<script type="text/jscript">
$(document).ready(function(){

var va=$("#search_exhnames").combogrid('getValue');

$("#search_exhnames").combogrid('setValue','1112').combogrid("setText","asd2");


$('#search_exhnames').combogrid({
		loadMsg:'数据加载中,请稍后...',
		panelWidth: 500,
		idField: 'cno',
		textField: 'cname',
		url: '/oaoro2odatasub/jsonword',
		method: 'get',
		 rownumbers:true,//序号   
      collapsible:false,//是否可折叠的   
		columns: [[
			{field:'cno',title:'Item ID',width:80},
			{field:'ccode',title:'Product',width:120},
			{field:'cname',title:'List Price',width:150},
			{field:'cnames',title:'Attribute',width:150}
		]],
		fitColumns: true,
		delay: 1100,
		keyHandler: {
			up: function() {
			},
			down: function() {
			},
			enter: function() {
			},
			query: function(q) {
				if(q||q.length>3){
					$('#search_exhnames').combogrid("grid").datagrid("reload", { 'reloadname': q });
					$('#search_exhnames').combogrid("setValue", q);
				}
			}
		 },
		 onClickRow:function(rowIndex, rowData){
			//alert(rowData.cname);
			//alert(rowData.cnames);
			var va=$("#search_exhnames").combogrid('getText');
			var va=$("#search_exhnames").combogrid('getValue');
			alert(va);
		},
		onLoadSuccess:function(){
			$("#search_exhnames").combogrid('setValue','111').combogrid("setText","asd");
		}
	});
	
});
</script>